home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _97A80EA349FB40BAB7E4B5B7665D519B < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.4 KB  |  61 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R2xx / NVidia NV2X (PS.1.X and above)
  9.  
  10. // Specular and diffuse bump-mapping with reflection map
  11. // For high-poly geometry (without normalization cube-maps)
  12. // One pass for single light source (one pass for each additional LS)
  13.  
  14. // Supports:
  15. // 1. Dot3 light maps
  16. // 2. Simple light maps
  17. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  18. // 4. Stencil shadows
  19. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  20. // 6. Optimised separate techniques for Single/Multiple light sources
  21. // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
  22.  
  23. /*Shader 'TemplBumpSpec_HP_EnvCMAmb'
  24. (
  25.   Params
  26.   (
  27.     Sort = Opaque
  28.   )
  29.   Public
  30.   (
  31.     float 'ReflectAmount' (0.25)
  32.   )
  33.   
  34.   #define $ENVCMAP $CubeMap
  35.   #include "BumpSpecular_HP_EnvCM.csi"    
  36.   #undefine $ENVCMAP
  37. )*/
  38.  
  39. Shader 'TemplBumpSpec_HP_EnvCMAmb'
  40. (
  41.   Params
  42.   (
  43.     Sort = Opaque
  44.   )
  45.  
  46.   #define %DIFFUSE 0x1
  47.   #define %SPECULAR 0x2
  48.   #define %DIFFUSEALPHA 0x4000
  49.   #define %ENVCMAMB 0x40
  50.   #define %BUMP_MAP 0x1000
  51.   
  52.   #include "IllumTemplate.csi"
  53.   
  54.   #undefine %BUMP_MAP
  55.   #undefine %ENVCMAMB
  56.   #undefine %DIFFUSEALPHA
  57.   #undefine %SPECULAR
  58.   #undefine %DIFFUSE
  59. )
  60.  
  61.